export function goodsList(){
	return new Promise(function(resolve,reject){
		uni.request({
			url: "goods/category/list",
			success(res) {
				resolve(res.data);
			},
			fail(err) {
				reject(err)
			}
		})
	});
}

export function childrenId(parentId) {
	return new Promise(function(resolve,reject){
		uni.request({
			url: "goods/category/parentId",
			data: {
				pid: parentId
			},
			success(res) {
				resolve(res.data);
			},
			fail(err) {
				reject(err)
			}
		})
	})
}